﻿using System;

namespace TrackIT.Common.Utils
{
    public class Util
    {
        public static DateTime RemoveUnecessarySecondsParts(DateTime dateTime)
        {
            DateTime newDate = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day,
            dateTime.Hour, dateTime.Minute, 0);
            return newDate;
        }

        public static DateTime RemoveUnecessaryTimeParts(DateTime dateTime)
        {
            DateTime newDate = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 0, 0, 0);
            return newDate;
        }
    }
}